package com.stylefeng.guns.modular.system.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.stylefeng.guns.modular.system.model.Realtime;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-27
 */
public interface RealtimeMapper extends BaseMapper<Realtime> {
	
	Realtime selectByDateTime(Realtime realtime);

	List<Map<String, Object>> selectMapsByDm(Page<Realtime> page,
			@Param("gScode") String gScode,@Param("gTime") String gTime,@Param("gType") Integer gType);

	List<Map<String, Object>> selectMonitorMapsByDm(@Param("gScode") String gScode,@Param("gTime") String gTime);

	List<Realtime> selectRealTimeDate(@Param("gScode") String code,@Param("gTime") String gTime);

	List<Map<String, Object>> selectRealTime();

	List<Map<String, Object>> selectMyRealTime();
	
	List<Map<String,Object>> selectCchicStatus(@Param("gScode") String code,@Param("gTime") String gTime);

	List<Map<String,Object>> selectCchicStatusBycurr(@Param("gScode") String code,@Param("gTime") String gTime);

	List<Map<String, Object>> selectCchicStatusByLastDay(@Param("gScode") String code,@Param("gTime") String gTime);

}
